<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <canvas id="canvas" width="600" height="440"></canvas>
  <script>
     /** @type {HTMLCanvasElement} */
     var canvas=document.querySelector("#canvas")
    var ctx=canvas.getContext("2d")
    var color=ctx.createRadialGradient(230,220,10,250,250,60)
    var color2=ctx.createRadialGradient(330,320,10,350,350,60)
    color.addColorStop(0,"white")
    color.addColorStop(1,"skyblue")
    color2.addColorStop(0,"white")
    color2.addColorStop(1,"red")
    ctx.fillStyle=color
    ctx.beginPath()
    ctx.arc(250,250,60,0,Math.PI*2)
    ctx.fill()
    // ctx.fillRect(0,0,60,60)
    ctx.closePath()
    ctx.beginPath()
    ctx.fillStyle=color2
    ctx.arc(350,350,60,0,Math.PI*2)
    // ctx.fillRect(0,0,60,60)
    
    ctx.fill()
    ctx.closePath()
  </script>
</body>
</html>